package com.hunter.sign.dao.model;

import java.io.Serializable;

public class SignContract implements Serializable {
    /**
     * 主键id
     *
     * @mbg.generated
     */
    private Long contractId;

    /**
     * 合同编号
     *
     * @mbg.generated
     */
    private String contractno;

    /**
     * 模板路径
     *
     * @mbg.generated
     */
    private String templetPath;

    /**
     * 模板替换地址
     *
     * @mbg.generated
     */
    private String templetReplacePath;

    /**
     * 标题
     *
     * @mbg.generated
     */
    private String title;

    /**
     * 需填字段，json字符串
     *
     * @mbg.generated
     */
    private String fieldFill;

    /**
     * 合同类型
     *
     * @mbg.generated
     */
    private Integer contractType;

    /**
     * 机构id
     *
     * @mbg.generated
     */
    private Long organizationId;

    /**
     * 创建时间（毫秒数）
     *
     * @mbg.generated
     */
    private Long createTime;

    /**
     * 修改时间（毫秒数）
     *
     * @mbg.generated
     */
    private Long modifyTime;

    private static final long serialVersionUID = 1L;

    public Long getContractId() {
        return contractId;
    }

    public void setContractId(Long contractId) {
        this.contractId = contractId;
    }

    public String getContractno() {
        return contractno;
    }

    public void setContractno(String contractno) {
        this.contractno = contractno;
    }

    public String getTempletPath() {
        return templetPath;
    }

    public void setTempletPath(String templetPath) {
        this.templetPath = templetPath;
    }

    public String getTempletReplacePath() {
        return templetReplacePath;
    }

    public void setTempletReplacePath(String templetReplacePath) {
        this.templetReplacePath = templetReplacePath;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getFieldFill() {
        return fieldFill;
    }

    public void setFieldFill(String fieldFill) {
        this.fieldFill = fieldFill;
    }

    public Integer getContractType() {
        return contractType;
    }

    public void setContractType(Integer contractType) {
        this.contractType = contractType;
    }

    public Long getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(Long organizationId) {
        this.organizationId = organizationId;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Long modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", contractId=").append(contractId);
        sb.append(", contractno=").append(contractno);
        sb.append(", templetPath=").append(templetPath);
        sb.append(", templetReplacePath=").append(templetReplacePath);
        sb.append(", title=").append(title);
        sb.append(", fieldFill=").append(fieldFill);
        sb.append(", contractType=").append(contractType);
        sb.append(", organizationId=").append(organizationId);
        sb.append(", createTime=").append(createTime);
        sb.append(", modifyTime=").append(modifyTime);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SignContract other = (SignContract) that;
        return (this.getContractId() == null ? other.getContractId() == null : this.getContractId().equals(other.getContractId()))
            && (this.getContractno() == null ? other.getContractno() == null : this.getContractno().equals(other.getContractno()))
            && (this.getTempletPath() == null ? other.getTempletPath() == null : this.getTempletPath().equals(other.getTempletPath()))
            && (this.getTempletReplacePath() == null ? other.getTempletReplacePath() == null : this.getTempletReplacePath().equals(other.getTempletReplacePath()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getFieldFill() == null ? other.getFieldFill() == null : this.getFieldFill().equals(other.getFieldFill()))
            && (this.getContractType() == null ? other.getContractType() == null : this.getContractType().equals(other.getContractType()))
            && (this.getOrganizationId() == null ? other.getOrganizationId() == null : this.getOrganizationId().equals(other.getOrganizationId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getModifyTime() == null ? other.getModifyTime() == null : this.getModifyTime().equals(other.getModifyTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getContractId() == null) ? 0 : getContractId().hashCode());
        result = prime * result + ((getContractno() == null) ? 0 : getContractno().hashCode());
        result = prime * result + ((getTempletPath() == null) ? 0 : getTempletPath().hashCode());
        result = prime * result + ((getTempletReplacePath() == null) ? 0 : getTempletReplacePath().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getFieldFill() == null) ? 0 : getFieldFill().hashCode());
        result = prime * result + ((getContractType() == null) ? 0 : getContractType().hashCode());
        result = prime * result + ((getOrganizationId() == null) ? 0 : getOrganizationId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getModifyTime() == null) ? 0 : getModifyTime().hashCode());
        return result;
    }
}